OTP\Handler\Forms\WooCommerceCheckOutForm B

Total Complexity 87
Dependencies 9
Dependents 0
Total lines 523
Lines of code 361
Logical lines of code 178
Comment lines 0
Methods 35
Properties 6

Methods 35

Method Rating Maintainability Complexity Lines of code
handleFormOptions()
A
48 7 33
add_custom_button()
S
45 3 80
handleForm()
S
50 6 26
my_custom_checkout_field_process()
S
66 7 8
_showButtonOnPage()
S
60 4 13
my_custom_checkout_field()
S
54 3 22
__construct()
S
57 3 16
checkIfVerificationCodeNotEntered()
S
65 4 8
enqueue_script_on_page()
S
60 3 12
showTextLinkOnPage()
S
58 2 18
handle_otp_token_submitted()
S
67 3 7
checkPhoneValidity()
S
66 3 8
add_custom_popup()
S
67 3 8
show_validation_button_or_text()
S
76 3 4
routeData()
S
69 3 6
getPhoneNumberSelector()
S
70 3 6
handle_woocommerce_checkout_form()
S
60 2 13
processEmail()
S
66 2 8
processPhoneNumber()
S
64 2 9
place_after_validating_field()
S
69 2 7
isPaymentVerificationNeeded()
S
74 2 4
checkIfVerificationNotStarted()
S
69 2 7
isPhoneNumberAlreadyInUse()
S
65 2 8
disable_auto_login_after_checkout()
S
70 2 7
common_button_or_link_enable_disable_script()
S
79 1 4
handle_failed_verification()
S
80 1 3
handle_post_verification()
S
83 1 3
unsetOTPSessionVariables()
S
79 1 3
billing_phone_process()
S
76 1 4
isGuestCheckoutOnlyEnabled()
S
92 1 1
showButtonInstead()
S
92 1 1
isPopUpEnabled()
S
92 1 1
getPaymentMethods()
S
92 1 1
isSelectivePaymentEnabled()
S
92 1 1
isAutoLoginDisabled()
S
92 1 1